package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dao.StudentDAO;
import com.mybatisplus.annotaion.ServiceImpl;
import com.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
//@DisableAutoMapper
public class StudentService extends ServiceImpl<StudentDAO, Student> {

    @Autowired
    private StudentDAO studentMapper;

    public IPage search(Page p, String sname,String cname){
        return  studentMapper.search(p,sname,cname);
    }
}
